package com.noyes4j.device.domain;

import com.noyes4j.common.annotation.Excel;
import com.noyes4j.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * @ClassName SysDevice
 * @Description: TODO
 * @Author zhaoweiqin
 * @Date 2021/1/29
 * @Version V1.0
 **/
public class SysDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 升级计划ID */
    private Long id;

    /** 产品ID */
    @Excel(name = "产品ID")
    private Long proId;

    /** 序列号 */
    @Excel(name = "序列号")
    private String sn;

    /** MAC */
    @Excel(name = "MAC")
    private String mac;

    /** 版本号 */
    @Excel(name = "版本号")
    private String version;

    /** ip地址 */
    @Excel(name = "ip地址")
    private String ip;

    /** 状态（0升级 1未升级） */
    @Excel(name = "状态", readConverterExp = "0=升级,1=未升级")
    private String visible;

    /** 微信ticket */
    @Excel(name = "微信ticket")
    private String ticket;

    /** 微信token */
    @Excel(name = "微信token")
    private String token;

    /** 微信openid */
    @Excel(name = "微信openid")
    private String openid;

    /** 存储周期 */
    @Excel(name = "存储周期")
    private String period;

    /** 上传间隔 */
    @Excel(name = "上传间隔")
    private String interval;

    /** 上传间隔 */
    @Excel(name = "上传间隔")
    private String logPath;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProId(Long proId)
    {
        this.proId = proId;
    }

    public Long getProId()
    {
        return proId;
    }
    public void setSn(String sn)
    {
        this.sn = sn;
    }

    public String getSn()
    {
        return sn;
    }
    public void setMac(String mac)
    {
        this.mac = mac;
    }

    public String getMac()
    {
        return mac;
    }
    public void setVersion(String version)
    {
        this.version = version;
    }

    public String getVersion()
    {
        return version;
    }
    public void setIp(String ip)
    {
        this.ip = ip;
    }

    public String getIp()
    {
        return ip;
    }
    public void setVisible(String visible)
    {
        this.visible = visible;
    }

    public String getVisible()
    {
        return visible;
    }
    public void setTicket(String ticket)
    {
        this.ticket = ticket;
    }

    public String getTicket()
    {
        return ticket;
    }
    public void setToken(String token)
    {
        this.token = token;
    }

    public String getToken()
    {
        return token;
    }
    public void setOpenid(String openid)
    {
        this.openid = openid;
    }

    public String getOpenid()
    {
        return openid;
    }
    public void setPeriod(String period)
    {
        this.period = period;
    }

    public String getPeriod()
    {
        return period;
    }
    public void setInterval(String interval)
    {
        this.interval = interval;
    }

    public String getInterval()
    {
        return interval;
    }
    public void setLogPath(String logPath)
    {
        this.logPath = logPath;
    }

    public String getLogPath()
    {
        return logPath;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("proId", getProId())
                .append("sn", getSn())
                .append("mac", getMac())
                .append("version", getVersion())
                .append("ip", getIp())
                .append("visible", getVisible())
                .append("ticket", getTicket())
                .append("token", getToken())
                .append("openid", getOpenid())
                .append("period", getPeriod())
                .append("interval", getInterval())
                .append("logPath", getLogPath())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}